package com.mystudy.springcloud.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.mystudy.springcloud.entities.CommonResult;
import com.mystudy.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

@Component
public class CustomerBlockHandler {
	public static CommonResult<Payment> handlerException(BlockException exception) {
		return new CommonResult<Payment>(444, "服务繁忙，请稍后再试！（客户自定义 - 01）");
	}

	public static CommonResult<Payment> handlerException2(BlockException exception) {
		return new CommonResult<Payment>(444, "服务繁忙，请稍后再试！（客户自定义 - 02）");
	}
}
